function setGlobal(key,value){
    window[key] = window[key] ||  value
}

function coverGlobal(key,value){
    window[key] = value
}

function setGlobals(map){
    for (const [key,value] of map) {
        setGlobal(key,value)
    }
}

function coverGlobals(map){
    for (const [key,value] of map) {
        coverGlobal(key,value)
    }
}

export {setGlobal,setGlobals,coverGlobal,coverGlobals}